package com.rongzhe.house.presenter;

import android.content.Intent;
import android.net.Uri;

import com.rongzhe.house.internet.DataListener;
import com.rongzhe.house.manager.UserManager;
import com.rongzhe.house.ui.UiControlInterface;
import com.rongzhe.house.ui.activity.ChooseCityActivity;
import com.rongzhe.house.ui.activity.HouseSearchActivity;
import com.rongzhe.house.ui.activity.MainActivity;
import com.yalantis.ucrop.UCrop;

import java.io.File;
import java.util.ArrayList;

import me.iwf.photopicker.PhotoPicker;

import static android.app.Activity.RESULT_OK;

/**
 * Created by zhongyanli on 2017/11/9.
 */

public class MainPresenter extends BasePresenter {
    public MainPresenter(UiControlInterface uiControlInterface) {
        super(uiControlInterface);
    }

    public void onCurrentCityClick() {
        Intent intent = new Intent(mContext, ChooseCityActivity.class);
        getUiControlInterface().launchActivity(false, intent);
    }

    public void onSearClick() {
        Intent intent = new Intent(mContext, HouseSearchActivity.class);
        getUiControlInterface().launchActivity(false, intent);
    }
}
